<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>处置申报</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<!-- modal页固定调用 -->
		<%@ include file="/html/custom/header.jsp"%>
		<%@ include file="/html/custom/modalHeader.jsp"%>

		<style type="text/css">
		form p {height: auto;}
		</style>
		<script type="text/javascript" src="<%=basePath%>html/js/swss.asset.change.js"></script>
		<script type="text/javascript">
			
			$(function(){
				$.validator.setDefaults({
					submitHandler: function(form) {
						 //alert("submitted!"); 
						form.submit();
					},
					highlight: function(input) {
						$(input).addClass("ui-state-highlight");
					},
					unhighlight: function(input) {
						$(input).removeClass("ui-state-highlight");
					}
			});
		       $.validator.addMethod("selectCheck", function(value, element) {
				return value == "" ? false : true
			}, "请选择内容项");
				$("#astChangeForm").validate({
		rules: {
			'astChangeApply.chageReason': {
				required: true,	
				maxlength:100,
			},
			'astChangeApply.applyMethod':{
			 selectCheck:true,
			}
		}
	});
			});
		</script>
	</head>

	<body>
		<div id="content">
			<form id="astChangeForm" method="post" action="/swss/asset/ch_applyChange.action"
				target="_self">
				<fieldset>
					<p>
						<label for="name">
							处置方式：
						</label>
						<input type="hidden" name="type" value="<s:property value="#request.t" />" />
						<input type="hidden" name="auditNoArray"
							value="<s:property value="#request.auditNoArray" />" />
						<select id="applyMethod" class="ui-widget-content ui-corner-all sel"
							name="astChangeApply.applyMethod">
							 <option value="">--请选择--</option>
							<s:iterator value="#request.applyMethodList">
								<option value="<s:property value="fieldName4" />">
									<s:property value="txt" />
								</option>
							</s:iterator>
						</select>
					</p>
					<div id="chageIntoDept">
					<p> 
						<label for="name">
							转入单位:
						</label>
						<input id="deptName" type="text"
							class="ui-widget-content ui-corner-all txt" name="astChangeApply.chageDeptNo" />
					</p>
					</div>
					<div id="chageDept">
					<p> 
						<label for="name">
							调拨单位:
						</label>
						<input id="chagedeptName" type="text"
							class="ui-widget-content ui-corner-all txt" name="astChangeApply.chagedeptName" />
					</p>
					</div>
					<p>
						<label for="name">
							处理结果:
						</label>
						<select class="ui-widget-content ui-corner-all sel"
							name="astChangeApply.applyResult">
							<s:iterator value="#request.applyResultList">
								<option value="<s:property value="fieldName4" />">
									<s:property value="txt" />
								</option>
							</s:iterator>
						</select>
					</p>
					<p>
						<label for="name">
							审批单类型:
						</label>
						<select name="astChangeApply.tableType" class="ui-widget-content ui-corner-all sel">
							<option value="0">厅本级审批权限</option>
							<option value="1">省级财政审批权限</option>
						</select>

					</p>
					
					<p>
						<label for="name">
							申请原因：
						</label>
						<textarea name="astChangeApply.chageReason" rows="4" cols="" class="ui-widget-content ui-corner-all txt" ></textarea>

					</p>

				</fieldset>

			</form>

		

		</div>

		<!-- modal也固定页尾 （按钮） -->
		<!-- modal也固定页尾 （按钮） -->
		<div class="btnset clearfix">
			<a id="btnClose" href="#">取消</a>
			<a id="btnReset" href="#">重置</a>
			<a id="btnSave" href="#">提交</a>
		</div>


	</body>
</html>
